/*
 * highScores.cpp
 *
 *  Created on: Dec 5, 2011
 *      Author: administratorforpc
 */

#include "myPPlayer.h"
#include "pokerGame.h"
#include "MAHeaders.h"
#include "Util.h"
#include "highScores.h"
#include <MAUI/ListBox.h>
#include <MAUI/Image.h>
#include <MAUI/Label.h>
#include <madmath.h>
#include <mastdlib.h>
#include <conprint.h>

using namespace MAUtil;
using namespace MAUI;


highScoreScreen::highScoreScreen(Screen *previous) : previous(previous) {

	mainLayout = createMainLayout("", "Back");
	ListBox* listBox = (ListBox*) mainLayout->getChildren()[0];

	Label *label;

	label = createLabel( "Poker: ", 32);
	label->setAutoSizeY();
	label->setSkin(gSkin);
	label->setMultiLine(true);
	listBox->add(label);

	label = createLabel( "MemMatch: ", 32);
	label->setAutoSizeY();
	label->setSkin(gSkin);
	listBox->add(label);

	softKeys = mainLayout->getChildren()[1];

	this->setMain(mainLayout);

}

highScoreScreen::~highScoreScreen() {


}

void highScoreScreen::keyPressEvent(int keyCode, int nativeCode) {

	if(keyCode == MAK_SOFTRIGHT) {
		previous->show();
	}

	if(keyCode == MAK_SOFTLEFT){

	}

	if(keyCode == MAK_1)
	{

	}
	if(keyCode == MAK_2)
	{
		previous->show();
	}
}

void highScoreScreen::pointerPressEvent(MAPoint2d point) {
	Point p;
	p.set(point.x, point.y);


}

void highScoreScreen::pointerReleaseEvent(MAPoint2d point) {

}






